#ifndef _VERTEX_H_
#define _VERTEX_H_

#include "../my/include/Matrix.h"
#include "vector.h"

class Vertex {
 public:
  double x;
  double y;
  double z;
  double w;// homogeneous coordinates
  Vertex(void);
  void set(double x, double y, double z, double w);
  void multiply (const Matrix& mat);

  Vector operator- (const Vertex& vertex);
  Vertex operator+ (double b);

  Vector getVector();
  double distance(const Vertex& vertex);
};

#endif
